home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Views
/
Panes
/
RectangularPane.cp
< prev
next >
Wrap
Text File
|
2000-06-23
|
649b
|
35 lines
// RectangularPane.cp
#ifndef RectangularPane_h
#include "RectangularPane.h"
#endif
#ifndef Canvas_h
#include "Canvas.h"
#endif
RectangularPane::RectangularPane( const DrawsSpontaneously *parent )
: Pane( parent ),
bounds( Rectangle32::zero )
{
}
void RectangularPane::Adjust( Canvas& canvas ) const
{
Assert( Parent() != 0 );
canvas.Submap( bounds );
}
void RectangularPane::SetBounds( Rectangle32 newBounds )
{
Assert( Parent() != 0 );
AnnouncePaneSize( newBounds.Size() );
bounds = newBounds;
}
void RectangularPane::Clear()
{
AcceptsSizeSuggestions::Clear();
Pane::Clear();
AcceptsConformanceToSize::Clear();
}